import { get, post } from './index'

//!一、菜单管理
// 封装添加菜单请求
export const menuAdd = (data) => post('/api/menuadd', data)

// 菜单列表
export const menuList = () => get('/api/menulist?istree=true')

// 删除菜单
export const menuDel = (data) => post('/api/menudelete', data)

// 获取菜单
export const menuOne = (params) => get('/api/menuinfo', params)

// 修改菜单
export const menuUpdate = (data) => post('/api/menuedit', data)